package com.imooc.utils;

public class MathUtil {

    public static final Double MONEY_RANGE = 0.01;

    public static Boolean equal(Double d1,Double d2){
        double result = Math.abs(d1 - d2);

        if(result<MONEY_RANGE){
            return true;
        }else {
            return false;
        }

    }
}
